<!-- File: /app/views/posts/index.ctp -->
<h3>STB Replacement</h3>
<?php
    echo $this->Form->create('Post', array('action' => 'add'));
    echo $this->Form->input('title');
    echo $this->Form->input('body', array('rows' => '3'));
    echo $this->Form->end('Save Post');
	
	echo $this->Form->create('Replace', array('action' => 'add'));
    echo $this->Form->input('replacedate');
    echo $this->Form->input('comments', array('rows' => '3'));
    echo $this->Form->end('Save Post');
?>

<h1>Posts</h1>
<table>
    <tr>
        <th>Id</th>
        <th>Name</th>
        <th>Text</th>
    </tr>

    <!-- Here is where we loop through our $posts array, printing out post info -->

    <?php 
	echo "------<br>".var_dump($posts);
	echo "------<br>".var_dump($Customer);	
	foreach ($posts as $post): ?>
    <tr>
        <td><?php echo $post['Post']['id'];  ?></td>
        <td><?php echo $post['Post']['title'];?></td>
        <td><?php echo $post['Post']['body'];?></td>
    </tr>
    <?php endforeach; ?>
</table>